var a = require("../export.js");

getApp();

Page({
    data: {
        ZiXunMobiles: [],
        statuss: [],
        options: {}
    },
    onLoad: function(a) {
        this.setData({
            options: a
        }), this.getCateConf(a), this.getZiXunMobile(a);
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    getZiXunMobile: function(e) {
        var t = this;
        a.requestUtil.post(a._DuoguanData.duoguan_host_api_url + "/index.php/addon/DuoguanCar/Api/getZiXunMobile.html", e, function(a) {
            t.setData({
                ZiXunMobiles: a
            });
        });
    },
    callPhone: function(e) {
        var t = e.currentTarget.dataset.mobile, n = this.data.options;
        n.ids = e.currentTarget.dataset.id, wx.makePhoneCall({
            phoneNumber: t,
            success: function() {
                a.requestUtil.post(a._DuoguanData.duoguan_host_api_url + "/index.php/addon/DuoguanCar/Apiform/addCiShu.html", n, function(a) {});
            }
        });
    },
    getCateConf: function(e) {
        var t = this;
        a.requestUtil.post(a._DuoguanData.duoguan_host_api_url + "/index.php/addon/DuoguanCar/Api/getCateConf.html", e, function(a) {
            t.setData({
                statuss: a
            });
        });
    },
    Tobespeak: function() {
        wx.navigateTo({
            url: "/pages/car/bespeak/bespeak"
        });
    },
    Tobespeakshijia: function() {
        wx.navigateTo({
            url: "/pages/car/bespeak-shijia/bespeak-shijia"
        });
    },
    Tobespeakdaikuan: function() {
        wx.navigateTo({
            url: "/pages/car/bespeak-daikuan/bespeak-daikuan"
        });
    },
    Tobespeakershou: function() {
        wx.navigateTo({
            url: "/pages/car/bespeak-ershou/bespeak-ershou"
        });
    }
});